package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by oyhk on 16/7/15.
 */
public class UploadImageFileDto extends DtoEntity {
    //文件路径
    private String path;
    // 上传文件 spring mvc MultipartFile
    private MultipartFile file;
    // 图片使用的业务类型 PRODUCT_FACE("/product/face","产品封面图")
    private String businessType;
    //推广链接
    private String promoteUrl;


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getPromoteUrl() {
        return promoteUrl;
    }

    public void setPromoteUrl(String promoteUrl) {
        this.promoteUrl = promoteUrl;
    }

    @Override
    public String toString() {
        return "UploadImageFileDto{" +
                "path='" + path + '\'' +
                ", file=" + file +
                ", businessType='" + businessType + '\'' +
                ", promoteUrl='" + promoteUrl + '\'' +
                '}';
    }
}
